const Fun = function Fun() {
    this.name = 'default name'
    // console.log(this.name)
}
Fun.prototype.constructor = function (name) {
    this.name = name
}

const funObj = new Fun('obj1')

console.log(Fun.prototype, funObj.__proto__)
console.log(funObj.name)